home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
vbsrch
/
file0.frm
< prev
next >
Wrap
Text File
|
1994-09-10
|
5KB
|
157 lines
VERSION 2.00
Begin Form frmMain
Caption = "Form"
ClientHeight = 4020
ClientLeft = 1095
ClientTop = 1500
ClientWidth = 7365
Height = 4425
Left = 1035
LinkTopic = "Form2"
ScaleHeight = 4020
ScaleWidth = 7365
Top = 1155
Width = 7485
Begin CommandButton Command2
Caption = "&Cancel"
Enabled = 0 'False
Height = 735
Left = 4500
TabIndex = 7
Top = 2700
Width = 2655
End
Begin TextBox Text2
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 285
Left = 4500
TabIndex = 5
Text = "c:\windows"
Top = 1560
Width = 2655
End
Begin CommandButton Command1
Caption = "&Search"
Height = 735
Left = 4500
TabIndex = 4
Top = 1920
Width = 2655
End
Begin TextBox Text1
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 285
Left = 4500
TabIndex = 2
Text = "bmp; readme.txt; w??.ini; s*.dll"
Top = 780
Width = 2655
End
Begin ListBox List1
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 3540
Left = 60
TabIndex = 0
Top = 420
Width = 4335
End
Begin Label Label1
AutoSize = -1 'True
Caption = "Here is the path you start your search:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 2
Left = 4500
TabIndex = 6
Top = 1320
Width = 2685
WordWrap = -1 'True
End
Begin Label Label1
AutoSize = -1 'True
Caption = "Here are the extensions or files you're looking for (extensions ""exe"" not *.exe"" or "".exe""):"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 585
Index = 1
Left = 4500
TabIndex = 3
Top = 180
Width = 2685
WordWrap = -1 'True
End
Begin Label Label1
AutoSize = -1 'True
Caption = "Here are the files found by the routine:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 60
TabIndex = 1
Top = 120
Width = 2700
End
End
Option Explicit
Sub Command1_Click ()
Dim i As Integer
Dim temp$, path$
path$ = Text2.Text
Backslash path$
On Error Resume Next
If Dir$(path$ + "NUL") = "" Then
MsgBox "Wrong path", 48, AppName
Exit Sub
End If
Command2.Enabled = True
On Error GoTo 0
temp$ = Trim$(text1.Text)
i = InStr(temp$, ";")
ReDim extensions(0) As String
Do Until i = 0
ReDim Preserve extensions(UBound(extensions) + 1)
extensions(UBound(extensions) - 1) = Left$(temp$, i - 1)
temp$ = Trim$(Right$(temp$, Len(temp$) - i))
i = InStr(temp$, ";")
Loop
ReDim Preserve extensions(UBound(extensions) + 1)
extensions(UBound(extensions) - 1) = temp$
SuchePfad path$, extensions()
Command2.Enabled = False
End Sub
Sub Command2_Click ()
SuchEnde = True
End Sub